package com.nicefact.mailmonitor.entity;

import java.io.Serializable;
import java.util.Date;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Key;

@PersistenceCapable(detachable="true")
public class LogMessage implements Serializable {
	
	
		
		private static final long serialVersionUID = 13L;
		
		@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
		@PrimaryKey
		private Key key;
		
		@Persistent
		private String message;
		
		@Persistent
		private Date date;
		
		@Persistent
		private String createdBy;
		
		public String getCreatedBy() {
			return createdBy;
		}

		public void setCreatedBy(String createdBy) {
			this.createdBy = createdBy;
		}

		public Key getKey() {
			return key;
		}

		public void setKey(Key key) {
			this.key = key;
		}

		public String getMessage() {
			return message;
		}

		public void setMessage(String message) {
			this.message = message;
		}

		public Date getDate() {
			return date;
		}

		public void setDate(Date date) {
			this.date = date;
		}

		public LogMessage(String message,String createdBy) {
			super();
			this.message = message;
			this.createdBy = createdBy;
		}
		
		
		public LogMessage() {
			super();
		}
	

}
